package modele;

import java.util.*;

public class Dep implements Comparable<Dep> {

    private String num;
    private Collection<Med> lesMeds  = new TreeSet<Med>();;

        public Dep(String num) {
            this.num = num;
        }

        public String getNum() {
            return num;
        }

        public Collection<Med> lesMeds() {
            return lesMeds;
        }

        @Override
        public int compareTo(Dep t) {
            return num.compareTo(t.num);
        }

        void addUnMed(Med unMed) {
            lesMeds.add(unMed);
        }
    
}